package com.bkd.dreams.client.volunteer.service;

import java.util.List;

import com.bkd.dreams.client.login.NotLoggedInException;
import com.bkd.dreams.client.volunteer.Volunteer;
import com.bkd.dreams.client.volunteer.VolunteerDTO;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("volunteers")
public interface VolunteerService extends RemoteService {
	
	void addVolunteer(VolunteerDTO volunteer)throws NotLoggedInException;
	VolunteerDTO getVolunteerByUserId(String userId) throws Exception;
	List<VolunteerDTO> getAllVolunteers() throws Exception;
	void toggleAdministrator(VolunteerDTO volunteer) throws NotLoggedInException;
}
